<?php
/*
	地图导航
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
cfc('core')->checklogin();

if($_RQ['op']=='main'){
	$item=$this->get('card',array('mid'=>$_SESSION['uid']));
	if(!$item){
		$item=array();
	}
	$item['avatar']=$item['avatar']?tomedia($item['avatar']):$this->plugin_resource.'images/header.png';
	$item['bgimg']=$item['bgimg']?tomedia($item['bgimg']):$this->plugin_resource.'images/bgimg/bg1.jpg';
	$return['zan']=$this->count('like',array('mid'=>$_SESSION['uid']));
	$return['item']=$item;
	exi($return);
}